package com.loubii.sunshineSchool.ui.fragments.chart;

public class ChartDataBean implements Comparable<ChartDataBean> {

    private String name;

    private int imgRes;

    private int count;

    private float precent;

    private float total;

    public int getImgRes() {
        return imgRes;
    }

    public void setImgRes(int imgRes) {
        this.imgRes = imgRes;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getPrecent() {
        return precent;
    }

    public void setPrecent(float precent) {
        this.precent = precent;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public float getTotal() {
        return total;
    }

    public void setTotal(float total) {
        this.total = total;
    }


    @Override
    public int compareTo(ChartDataBean o) {
        if (this.total > o.total)
            return -1;
        else if (this.total < o.total)
            return 1;
        else
            return 0;
    }

}
